﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CloudStorage_Backend.exception
{
    public class FileChunkException : Exception
    {
        public FileChunkExceptionMsg fileChunkExceptionMsg;

        public FileChunkException(FileChunkExceptionMsg msg) : base(msg.ToString()) {
            fileChunkExceptionMsg = msg;
        }
    }

    public enum FileChunkExceptionMsg {
        EMPTY_UPLOAD_REQUEST,
        CHUNK_OVERFLOW,
        FILE_TOO_LARGE,
        FILECHUNKSIZE_WRONG,
        LASTCHUNK_WRONG,
        SINGLECHUNK_WRONG
    }
}
